package com.ewzj.bigdata.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.ewzj.bigdata.mvp.contract.RmVisualContract;
import com.ewzj.bigdata.mvp.model.RmVisualModel;


@Module
public class RmVisualModule {
    private RmVisualContract.View view;

    /**
     * 构建RmVisualModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public RmVisualModule(RmVisualContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    RmVisualContract.View provideRmVisualView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    RmVisualContract.Model provideRmVisualModel(RmVisualModel model) {
        return model;
    }
}